<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <textarea name="" id="" cols="30" rows="10" v-model="release"></textarea>
      <button @click="discussFn">发布评论</button>

      <table border="1px solid black" cellpadding="10">
        <thead>
          <tr>
            <th>游客</th>
            <th>评论</th>
            <th>点赞数</th>
            <th>发布日期</th>
            <th colspan="3">操作</th>
          </tr>
        </thead>
        <tbody>
          <tr v-for="item in list">
            <td>{{item.name}}</td>
            <td>{{item.discuss}}</td>
            <td>{{item.upvote}}</td>
            <td>{{item.date}}</td>
            <td><button @click="listFn(item)">点赞</button></td>
            <td><button @click="topFn(item)">置顶</button></td>
            <td><button @click="deleteFn(item)">删除</button></td>
          </tr>
        </tbody>
      </table>
    </div>
    <!-- <script src="../vue.js"></script>
    <script>
    
    </script> -->
  </body>
</html>
